package com.lyy.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import java.util.Date;

@Data
@TableName("tb_log")
public class Log {

    @Id
    @TableId(value = "id", type = IdType.AUTO)  //很重要，不加会造成ID特别大
    private Long id;

    private String username;

    private Long time;

    private String ip;

    private Date createTime;

    private String location;

    private String operation;

    private String method;

    private String params;
}
